/*
 * Created by JFormDesigner on Sun Dec 14 18:20:55 BRST 2008
 */

package visualCAD;

import java.awt.*;
import javax.swing.*;

/**
 * @author Felipe Eberhardt
 */
public class NewProjectVisual extends JFrame {
	public NewProjectVisual() {
		initComponents();
	}

	private void initComponents() {
		// JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
		// Generated using JFormDesigner Evaluation license - victor asdasd
		label4 = new JLabel();
		label1 = new JLabel();
		xSpinner = new JSpinner();
		ySpinner = new JSpinner();
		label3 = new JLabel();
		zSpinner = new JSpinner();
		label6 = new JLabel();
		toleranceSpinner = new JSpinner();
		label5 = new JLabel();
		cancelButton = new JButton();
		previewButton = new JButton();
		okButton = new JButton();
		j3dPannel = new JPanel();
		nameTextField = new JTextField();
		label2 = new JLabel();

		//======== this ========
		setTitle("New Project");
		setResizable(false);
		Container contentPane = getContentPane();

		//---- label4 ----
		label4.setText("Enter the parameters for the piece:");

		//---- label1 ----
		label1.setText("X:");

		//---- xSpinner ----
		xSpinner.setModel(new SpinnerNumberModel(300.0, 0.0, null, 0.1));

		//---- ySpinner ----
		ySpinner.setModel(new SpinnerNumberModel(300.0, 0.0, null, 0.1));

		//---- label3 ----
		label3.setText("Y:");

		//---- zSpinner ----
		zSpinner.setModel(new SpinnerNumberModel(300.0, 0.0, null, 0.1));

		//---- label6 ----
		label6.setText("Z:");

		//---- toleranceSpinner ----
		toleranceSpinner.setModel(new SpinnerNumberModel(0.0, 0.0, null, 0.1));

		//---- label5 ----
		label5.setText("tolerance:");

		//---- cancelButton ----
		cancelButton.setText("cancelar");

		//---- previewButton ----
		previewButton.setText("preview");

		//---- okButton ----
		okButton.setText("ok");

		//======== j3dPannel ========
		{

			// JFormDesigner evaluation mark
			j3dPannel.setBorder(new javax.swing.border.CompoundBorder(
				new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0),
					"JFormDesigner Evaluation", javax.swing.border.TitledBorder.CENTER,
					javax.swing.border.TitledBorder.BOTTOM, new java.awt.Font("Dialog", java.awt.Font.BOLD, 12),
					java.awt.Color.red), j3dPannel.getBorder())); j3dPannel.addPropertyChangeListener(new java.beans.PropertyChangeListener(){public void propertyChange(java.beans.PropertyChangeEvent e){if("border".equals(e.getPropertyName()))throw new RuntimeException();}});

			j3dPannel.setLayout(new BorderLayout());
		}

		//---- nameTextField ----
		nameTextField.setText("piece");

		//---- label2 ----
		label2.setText("name:");

		GroupLayout contentPaneLayout = new GroupLayout(contentPane);
		contentPane.setLayout(contentPaneLayout);
		contentPaneLayout.setHorizontalGroup(
			contentPaneLayout.createParallelGroup()
				.addGroup(contentPaneLayout.createSequentialGroup()
					.addContainerGap()
					.addGroup(contentPaneLayout.createParallelGroup()
						.addComponent(label4)
						.addGroup(contentPaneLayout.createSequentialGroup()
							.addGroup(contentPaneLayout.createParallelGroup()
								.addComponent(xSpinner, GroupLayout.PREFERRED_SIZE, 70, GroupLayout.PREFERRED_SIZE)
								.addComponent(label1))
							.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
							.addGroup(contentPaneLayout.createParallelGroup()
								.addComponent(ySpinner, GroupLayout.PREFERRED_SIZE, 70, GroupLayout.PREFERRED_SIZE)
								.addComponent(label3, GroupLayout.PREFERRED_SIZE, 50, GroupLayout.PREFERRED_SIZE))
							.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
							.addGroup(contentPaneLayout.createParallelGroup()
								.addComponent(zSpinner, GroupLayout.PREFERRED_SIZE, 70, GroupLayout.PREFERRED_SIZE)
								.addComponent(label6, GroupLayout.PREFERRED_SIZE, 50, GroupLayout.PREFERRED_SIZE))
							.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
							.addGroup(contentPaneLayout.createParallelGroup()
								.addComponent(toleranceSpinner, GroupLayout.PREFERRED_SIZE, 69, GroupLayout.PREFERRED_SIZE)
								.addComponent(label5))
							.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
							.addGroup(contentPaneLayout.createParallelGroup()
								.addComponent(label2)
								.addComponent(nameTextField, GroupLayout.PREFERRED_SIZE, 270, GroupLayout.PREFERRED_SIZE)))
						.addGroup(GroupLayout.Alignment.TRAILING, contentPaneLayout.createSequentialGroup()
							.addComponent(okButton)
							.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
							.addComponent(previewButton)
							.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
							.addComponent(cancelButton))
						.addComponent(j3dPannel, GroupLayout.DEFAULT_SIZE, 772, Short.MAX_VALUE))
					.addContainerGap())
		);
		contentPaneLayout.setVerticalGroup(
			contentPaneLayout.createParallelGroup()
				.addGroup(contentPaneLayout.createSequentialGroup()
					.addContainerGap()
					.addComponent(label4)
					.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
					.addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
						.addComponent(label1)
						.addComponent(label3)
						.addComponent(label6)
						.addComponent(label5)
						.addComponent(label2))
					.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
					.addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
						.addComponent(xSpinner, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
						.addComponent(ySpinner, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
						.addComponent(zSpinner, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
						.addComponent(toleranceSpinner, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
						.addComponent(nameTextField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addGap(18, 18, 18)
					.addComponent(j3dPannel, GroupLayout.DEFAULT_SIZE, 434, Short.MAX_VALUE)
					.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
					.addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
						.addComponent(cancelButton)
						.addComponent(previewButton)
						.addComponent(okButton))
					.addContainerGap())
		);
		setSize(800, 600);
		setLocationRelativeTo(getOwner());
		// JFormDesigner - End of component initialization  //GEN-END:initComponents
	}

	// JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
	// Generated using JFormDesigner Evaluation license - victor asdasd
	private JLabel label4;
	private JLabel label1;
	protected JSpinner xSpinner;
	protected JSpinner ySpinner;
	private JLabel label3;
	protected JSpinner zSpinner;
	private JLabel label6;
	protected JSpinner toleranceSpinner;
	private JLabel label5;
	public JButton cancelButton;
	public JButton previewButton;
	public JButton okButton;
	public JPanel j3dPannel;
	public JTextField nameTextField;
	private JLabel label2;
	// JFormDesigner - End of variables declaration  //GEN-END:variables
}
